Class DistributionSquare

java.lang.Object
jeresources.api.distributions.DistributionBase
jeresources.api.distributions.DistributionSquare

public class DistributionSquare extends DistributionBase
  • Constructor Details

    • DistributionSquare

      public DistributionSquare(int minY, int maxY, float chance)
      Creates pure square distribution
      Parameters:
      minY - first occurrence
      maxY - last occurrence
      chance - chance for the distribution
    • DistributionSquare

      public DistributionSquare(int min0, int minY, int maxY, int max0, float chance)
      Creates rounded square distribution
      Parameters:
      min0 - start of the ramp
      minY - end of the ramp up
      maxY - start of the ramp down
      max0 - end of ramp down
      chance - the chance at the top
    • DistributionSquare

      public DistributionSquare(int veinCount, int veinSize, int minY, int maxY)
      Creates rounded square distribution
      Parameters:
      veinCount - the amount of veins per chunk
      veinSize - the amount of blocks per vein
      minY - the lowest Y value for a vein
      maxY - the highest Y value for a vein